package task07;

/**
 * @author banana
 */
public class Test2 {
    public static void main(String[] args) {
        System.out.println();



        System.out.println("hello"+'a'+1);
        System.out.println('a'+1+"hello");

        int a=298;
        byte b;
        b=(byte)a;
        System.out.println("a="+a);
        System.out.println("b="+b);
        byte a1=3;
        byte a2=4;
        int a3=a1+a2;
        System.out.println("a3="+a3);



        byte a_byte=126;
        int a_int =20;
        long a_long=123345670000L;
        float a_float=12.345f;
        double a_double=15.444;
        char a_char='a';
//        char a2_char='ab';
        char a3_char='中';
        boolean a_boolean=true;
        System.out.println("整型byte变量a_byte的值为:"+a_byte);
        System.out.println("整型int变量a_int的值为:"+a_int);
        System.out.println("整型long变量a_long的值为:"+a_long);
        System.out.println("整型float变量a_float的值为:"+a_float);
        System.out.println("整型double变量a_double的值为:"+a_double);
        System.out.println("整型char变量a_char的值为:"+a_char);
//        System.out.println("整型char变量a2_char的值为:"+a2_char);
        System.out.println("整型char变量a3_char的值为:"+a3_char);
        System.out.println("整型boolean变量a_boolean的值为:"+a_boolean);
        System.out.println("Hello World!");
    }
}
